package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 支付配置对象 wz_pay_config
 * @author by caoyong
 * @date 2022/11/17
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_pay_config")
public class WzPayConfig {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO) //id自动递增
    private Long id;

    /** 友币数目 */
    @Excel(name = "友币数目")
    private Long friendc;

    /** 人民币 */
    @Excel(name = "人民币")
    private Double money;

    /** 手续费(百分比) */
    @Excel(name = "手续费(百分比)")
    private Double serviceCharge;

    /** 单笔充值金额 */
    @Excel(name = "单笔充值金额")
    private Long singleRecharge;

    /** 充值兑换友币 */
    @Excel(name = "充值兑换友币")
    private Long convertFriendc;

    /**支付配置类型(1-友币比例配置  2-充值配置)*/
    private String type;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 变动时间 */
    @Excel(name = "变动时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;

}
